<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Logback Manual - Logback Manual | Docs4dev</title>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="Logback is intended as a successor to the popular log4j project, picking up where log4j leaves off.">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta property="og:type" content="website">
<meta property="og:title" content="Logback Manual - Logback Manual">
<meta property="og:url" content="https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/">
<meta property="og:site_name" content="Docs4dev">
<meta property="og:locale" content="zh_CN">
<meta name="twitter:card" content="Logback is intended as a successor to the popular log4j project, picking up where log4j leaves off.">
<meta name="generator" content="Docs4dev template engine">
<link rel="stylesheet" href="static/css/app.min.css">
<link rel="shortcut icon" href="https://www.docs4dev.com/static/images/favicon.ico" type="image/x-icon">
<script async="" src="static/js/js.js"></script>
<script async="" src="static/js/adsbygoogle.js" crossorigin="anonymous"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'UA-129571937-1');
  </script>
<link rel="amphtml" href="https://www.docs4dev.com/amp/docs/en/logback/1.3.0-alpha4/reference/index.html">

<script type="application/ld+json">{"name":null,"headline":"Logback Manual-Logback Manual","inLanguage":"en-US","version":"1.3.0-alpha4","image":"/static/icon/icon-logback.png","datePublished":"2021-05-20T12:51:01Z","dateCreated":"2021-05-20T12:51:01Z","dateModified":"2021-07-07T12:45:58Z","@context":"https://schema.org/","@type":"APIReference","abstract":"Logback is intended as a successor to the popular log4j project, picking up where log4j leaves off."}</script>
</head>
<body>
<div class="book with-summary">
<div class="book-summary">
<div class="logo">
<a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference');" style="color: inherit;">
<img src="static/picture/icon-logback.png" style="width: 48px; height: 48px;" alt="Logo">
</a>
<b style="color: inherit; margin-left: 8px;">Logback Manual</b>
</div>
<div class="item">
<div>
<label for="version">版本</label>
<select id="version" onchange="onVersionChange(this)">
<option value="1.3.0-alpha4" selected="selected">1.3.0-alpha4</option>
</select>
</div>
<div style="margin-top: 8px;">
<label for="language">语言</label>
<select id="language" onchange="onLangChange(this)" value="en">
<option value="en" selected="selected">English</option>
<option value="zh">中文</option>
</select>
</div>

</div>
<div class="item menus">
<a title="Table of Contents" style="margin-right: 8px;" href="#">
 <i class="fa fa-chevron-left"></i>
<span style="margin-left: 2px;">返回目录</span>
</a>
</div>
<nav role="navigation" id="navigation">
<ul class="summary">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/introduction.html');" title="Chapter 1: Introduction to logback"> Chapter 1: Introduction to logback </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/architecture.html');" title="Chapter 2: Architecture"> Chapter 2: Architecture </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/configuration.html');" title="Chapter 3: Configuration"> Chapter 3: Configuration </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/appenders.html');" title="Chapter 4: Appenders"> Chapter 4: Appenders </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/encoders.html');" title="Chapter 5: Encoders"> Chapter 5: Encoders </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/layouts.html');" title="Chapter 6: Layouts"> Chapter 6: Layouts </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/filters.html');" title="Chapter 7: Filters"> Chapter 7: Filters </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/mdc.html');" title="Chapter 8: Mapped Diagnostic Contexts"> Chapter 8: Mapped Diagnostic Contexts </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/loggingSeparation.html');" title="Chapter 9: Logging Separation"> Chapter 9: Logging Separation </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/jmxConfig.html');" title="Chapter 10: JMX Configurator"> Chapter 10: JMX Configurator </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/onJoran.html');" title="Chapter 11: Joran"> Chapter 11: Joran </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/groovy.html');" title="Chapter 12: Groovy Configuration"> Chapter 12: Groovy Configuration </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/migrationFromLog4j.html');" title="Chapter 13: Migration from log4j"> Chapter 13: Migration from log4j </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/receivers.html');" title="Chapter 14: Receivers"> Chapter 14: Receivers </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/usingSSL.html');" title="Chapter 15: Using SSL"> Chapter 15: Using SSL </a> </li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<header class="book-header">
<div class="dropdown pull-right js-toolbar-action">
<a class="btn toggle-dropdown" aria-label="Language" href="#">
<i class="fa fa-globe"></i>
</a>
<div class="dropdown-menu dropdown-left">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<button class="button size-1" onclick="changeLang('zh_CN')">中文</button>
</div>
<div class="buttons">
<button class="button size-1" onclick="changeLang('en_US')">English</button>
</div>
</div>
</div>
<a class="btn pull-right js-toolbar-action non-mobile" aria-label="Sign up" href="register.html">
<i class="fa fa-sign-in"></i> <span>注册</span>
</a>
<a class="btn pull-right js-toolbar-action non-mobile" aria-label="Sign in" href="register.html">
<i class="fa fa-sign-in"></i>
<span>登录</span>
</a>
<a class="btn pull-left js-toolbar-action btn-summary" href="#"><i class="fa fa-align-justify"></i></a>
<div class="dropdown pull-left font-settings js-toolbar-action">
<a class="btn toggle-dropdown" aria-label="Font Settings" href="#">
<i class="fa fa-font"></i>
</a>
<div class="dropdown-menu dropdown-right">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<button class="button size-2 font-reduce">A</button>
<button class="button size-2 font-enlarge">A</button>
</div>
<div class="buttons">
<button class="button size-2 family-serif">Serif</button>
<button class="button size-2 family-sans">Sans</button>
</div>
<div class="buttons">
<button class="button size-3 theme-white">White</button>
<button class="button size-3 theme-sepia">Sepia</button>
<button class="button size-3 theme-night">Night</button>
</div>
</div>
</div>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Home" href="en.html">
<i class="fa fa-home"></i> <span>首页</span>
</a>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Guide" href="javascript:window.open('https://www.javadoc.org/');">
<i class="fa fa-book"></i> <span>API Docs</span>
</a>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Tools" href="index37.html">
<i class="fa fa-gears"></i> <span>工具</span>
</a>
<div class="dropdown pull-left js-toolbar-action mobile">
<a class="btn toggle-dropdown" aria-label="Language" href="#">
<i class="fa fa-chevron-down"></i>
</a>
<div class="dropdown-menu dropdown-right">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<a class="button size-1" aria-label="Home" href="en.html">
<i class="fa fa-home"></i> <span>首页</span>
</a>
</div>
<div class="buttons">
<a class="button size-1" aria-label="Guide" href="javascript:window.open('https://www.javadoc.org/');">
<i class="fa fa-book"></i> <span>API Docs</span>
</a>
</div>
<div class="buttons">
<a class="button size-1" aria-label="Tools" href="index37.html">
<i class="fa fa-gears"></i> <span>工具</span>
</a>
</div>
</div>
</div>
<div id="autocomplete" class="pull-right"></div>
<span id="toolbar-title"></span>
</header>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<section class="normal markdown-section">
<div id="content">
<h1>Logback Manual</h1>
<div><ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-6108808167664152" data-ad-slot="6964403648"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
<div><h2 id="The-logback-manual">The logback manual</h2>
<a href="javascript:window.open('http://logback.qos.ch/manual/index_ja.html');" target="_blank" rel="noopener noreferrer">和訳 (Japanese translation) <i class="fa fa-external-link"></i></a>
<p>The complete logback manual documents the latest version of logback framework. In over 150 pages and dozens of concrete examples, it covers both basic and advanced logback features, including: </p>
<div>
<ul>
<li><p>the overall logback architecture</p></li>
<li><p>discussion of best logback practices and anti-patterns</p></li>
<li><p>logback configuration scripts in XML format</p></li>
<li><p>appenders</p></li>
<li><p>encoders</p></li>
<li><p>layouts</p></li>
<li><p>filters</p></li>
<li><p>mapped diagnostic contexts</p></li>
<li><p>Joran, logback's configuration system</p></li>
</ul>
</div>
<p>The logback manual describes the logback API in considerable detail, including its features and design rationale. Authored by Ceki Gülcü and Sébastien Pennec, the main contributors to the logback project, the logback manual is intended for developers already familiar with the Java language but new to logback, as much as for experienced logback users. With the aid of introductory material and many examples, new users should quickly come up to speed. </p>
<div>
<p>Without further ado, here are the contents of the manual:</p>
<ul>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/introduction.html');"><b class="notranslate">Chapter 1: Introduction to logback</b></a> </p></li>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/architecture.html');"><b class="notranslate">Chapter 2: Architecture</b></a> </p></li>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/configuration.html');"><b class="notranslate">Chapter 3: Configuration</b></a> </p></li>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/appenders.html');"><b class="notranslate">Chapter 4: Appenders</b></a> </p></li>
<li><p><a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/encoders.html');"><b class="notranslate">Chapter 5: Encoders</b></a></p> </li>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/layouts.html');"><b class="notranslate">Chapter 6: Layouts</b></a> </p></li>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/filters.html');"><b class="notranslate">Chapter 7: Filters</b></a> </p></li>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/mdc.html');"><b class="notranslate">Chapter 8: Mapped Diagnostic Contexts</b></a> </p></li>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/loggingSeparation.html');"><b class="notranslate">Chapter 9: Logging Separation</b></a> </p></li>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/jmxConfig.html');"><b class="notranslate">Chapter 10: JMX Configurator</b></a> </p></li>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/onJoran.html');"><b class="notranslate">Chapter 11: Joran</b></a> </p></li>
<li><p><a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/groovy.html');"><b class="notranslate">Chapter 12: Groovy Configuration</b></a></p></li>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/migrationFromLog4j.html');"><b class="notranslate">Chapter 13: Migration from log4j</b></a> </p></li>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/receivers.html');"><b class="notranslate">Chapter 14: Receivers</b></a> </p></li>
<li><p> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/logback/1.3.0-alpha4/reference/usingSSL.html');"><b class="notranslate">Chapter 15: Using SSL</b></a> </p></li>
</ul>
</div></div>
</div>
</section>
<div class="right-sidebar">
<div class="affix"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6108808167664152" data-ad-slot="3102929424" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
</div>
</div>
<div class="ft">
<a href="#toolbar-title" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a>
<footer class="footer">
<div class="footer__container--normal">
<img alt="扫码关注公众号" title="扫码关注公众号" src="static/picture/qr-code.png" width="170" height="170">
<div class="footer__description--normal">
<p class="paragraph footer__author--normal">Docs4dev<sup class="super">&#xAE;</sup>
</p>
<p class="paragraph footer__quote&#45;&#45;normal">
如果你在使用过程中遇到任何问题，可以在 <a href="javascript:window.open('https://github.com/docs4dev/docs4dev-issues');" target="_blank" rel="noopener noreferrer">这里<i class="fa fa-external-link"></i></a> 提issue。
</p>
<div class="footer__main--normal">
<p class="paragraph footer__main__paragraph--normal copyright" style="color: #666 !important;">
<a href="javascript:window.open('https://beian.miit.gov.cn/');">
蜀ICP备14021783号-6
</a>
</p>
<p class="paragraph footer__main__paragraph--normal copyright" style="color: #666 !important;">
Copyright &#xA9; Docs4dev all
right reserved, powered by <a href="index2.html" target="_blank">Docs4dev</a></p>
</div>
</div>
</div>
<div class="box__issues">
</div>
</footer>
</div>
</div>
</div>
</div>
</div>
<script>
  var hasToc = true;
  /*  var downloadable = /!*false*!/ false;
    var editable = /!*false*!/ false;
    var code = /!*"logback"*!/ false;
    var version = /!*"1.3.0-alpha4"*!/ false;
    var type = /!*"reference"*!/ false;
    var lang = /!*"en"*!/ 'en';
    //edit link
    require(["gitbook", "jQuery"], function (gitbook, $) {
      gitbook.events.bind('start', function (e, config) {
        // Add edit toolbar to left
        var chapterId = /!*17673*!/ 0;
        if (downloadable) {
          gitbook.toolbar.createButton({
            icon: 'fa fa-download',
            text: '下载',
            onClick: function () {
              window.open('/download?code=' + code + '&version=' + version + '&type=' + type + '&lang=' + lang);
            }
          });
        }
        if (editable) {
          gitbook.toolbar.createButton({
            icon: 'fa fa-edit',
            text: '编辑此页',
            onClick: function () {
              window.open('/docs/edit?chapterId=' + chapterId + '&lang=' + lang);
            }
          });
        }
      });
    });*/
</script>
<script>
    var code = "logback";
    var lang = "en";
  </script>

<script src="static/js/autocomplete-js.js"></script>
<script src="static/js/app.min.js"></script>
<script src="static/js/search.min.js"></script>
</body>
</html>
